package com.jintu.portal.pojo.entity;

import com.jintu.portal.pojo.bean.BaseEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by liyou on 2017/9/21.
 */
@Entity
@Table(name = "t_inter_log")
public class TInterLog extends BaseEntity {
    private Long id;
    private Date reqTime;
    private Date respTime;

    @Column(name = "consume_time")
    private Long consumeTime;

    private String reqUrl;
    private String reqBody;
    private String respBody;
    private Long userId;

    @Id
    @GeneratedValue
    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "req_time")
    public Date getReqTime() {
        return reqTime;
    }

    public void setReqTime(Date reqTime) {
        this.reqTime = reqTime;
    }

    @Column(name = "resp_time")
    public Date getRespTime() {
        return respTime;
    }

    public void setRespTime(Date respTime) {
        this.respTime = respTime;
    }

    public Long getConsumeTime() {
        return consumeTime;
    }

    public void setConsumeTime(Long consumeTime) {
        this.consumeTime = consumeTime;
    }

    @Column(name = "req_url")
    public String getReqUrl() {
        return reqUrl;
    }

    public void setReqUrl(String reqUrl) {
        this.reqUrl = reqUrl;
    }

    @Column(name = "req_body")
    public String getReqBody() {
        return reqBody;
    }

    public void setReqBody(String reqBody) {
        this.reqBody = reqBody;
    }

    @Column(name = "resp_body")
    public String getRespBody() {
        return respBody;
    }

    public void setRespBody(String respBody) {
        this.respBody = respBody;
    }

    @Column(name = "user_id")
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
